//引入react核心库
import React from 'react'
//引入react-dom
// import ReactDOM from 'react-dom'
import ReactDOM from 'react-dom/client';
import { BrowserRouter } from 'react-router-dom'
//引入app组件
import App from './App'
//渲染app到页面
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
  <BrowserRouter>
    <App />
  </BrowserRouter >);
// ReactDOM.render(<App />, document.getElementById('root'));